package com.ecoolex.chinadutyfree.retailer.ws;

import java.util.List;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsShoppingCart;
import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;


public interface DirectMailGoodsShoppingCartService {

	DirectMailGoodsShoppingCart addShoppingCart(Integer directMailProductId, Integer buyNumber, Integer userId, String userName, Boolean isTemporary) throws BizException;

	void delShoppingCart(List<Integer> cartIdList, Integer userId, String userName) throws BizException;;

	DirectMailGoodsShoppingCart updateShoppingCart(Integer cartId, Integer buyNumber, Integer userId) throws BizException;;

	DirectMailGoodsShoppingCart getShoppingCartById(Integer cartId, Integer userId);

	Pagination<DirectMailGoodsShoppingCart> queryShoppingCartList(Sorting[] sorts, Page page, Integer userId);

	Long countValidTotalNumberByUserId(Integer userId);

	List<DirectMailGoodsShoppingCart> queryShoppingCartByCartIds(List<Integer> cartIds, Integer userId);
}
